//
//  WillPayInformationTableViewCell.m
//  Jlcf_ios
//
//  Created by zl on 2018/10/18.
//  Copyright © 2018年 ski. All rights reserved.
//

#import "NcnbyJJLCFWillPayInformationTableViewCellTRZRlN.h"
@interface NcnbyJJLCFWillPayInformationTableViewCellTRZRlN ()

@property (nonatomic, strong) UILabel *titleLabel;

@property (nonatomic, strong) UILabel *RsyoGMdetailLabelXhkXAI;

@property (nonatomic, strong) NSString *detail;
@property (nonatomic, ) NSInteger row;

@end

@implementation NcnbyJJLCFWillPayInformationTableViewCellTRZRlN

-(void)passRowId:(NSInteger)row andInfo:(NSString *)info{
    self.row = row;
    self.detail = info;
}
- (void)reloadData{
    
    
    if(!self.titleLabel){
        self.titleLabel = [UILabel new];
        self.titleLabel.left = self.left + 11;
        self.titleLabel.top = 15;
        self.titleLabel.textColor =QTZ_Gray51;
        self.titleLabel.font = FONT(12);
        [self addSubview:self.titleLabel];
    }
    
    if(self.titleLabel){
        if (_row == 0) {
            self.titleLabel.text = @"项目剩余可投金额（元）";
            [self.titleLabel sizeToFit];
        }else{
            self.titleLabel.text =  @"账户可用余额（元）";
            
            [self.titleLabel sizeToFit];
        }
    }
    
    if(!self.RsyoGMdetailLabelXhkXAI){
        self.RsyoGMdetailLabelXhkXAI = [UILabel new];
        self.RsyoGMdetailLabelXhkXAI.right = self.right-12;
        self.RsyoGMdetailLabelXhkXAI.top = self.titleLabel.top;
        self.RsyoGMdetailLabelXhkXAI.textColor = QTZ_Gray51;
        self.RsyoGMdetailLabelXhkXAI.font = FONT(13);
        [self addSubview:self.RsyoGMdetailLabelXhkXAI];
        
    }
    
    if (self.RsyoGMdetailLabelXhkXAI) {
        self.RsyoGMdetailLabelXhkXAI.text = self.detail;
        [self.RsyoGMdetailLabelXhkXAI sizeToFit];
    }
    
}
//-------------------------------------------------

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
